Searched hist:f3adefb2 (Results 1 – 2 of 2) sorted by relevance
/qemu/tests/qemu-iotests/ |
H A D | 187.out | f3adefb2 Fri Sep 22 12:50:12 GMT 2017 Kevin Wolf <kwolf@redhat.com> qemu-io: Drop write permissions before read-only reopen
qemu-io provides a 'reopen' command that allows switching from writable to read-only access. We need to make sure that we don't try to keep write permissions to a BlockBackend that becomes read-only, otherwise things are going to fail.
This requires a bdrv_drain() call because otherwise in-flight AIO write requests could issue new internal requests while the permission has already gone away, which would cause assertion failures. Draining the queue doesn't break AIO requests in any new way, bdrv_reopen() would drain it anyway only a few lines later.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com>
|
/qemu/ |
H A D | qemu-io-cmds.c | f3adefb2 Fri Sep 22 12:50:12 GMT 2017 Kevin Wolf <kwolf@redhat.com> qemu-io: Drop write permissions before read-only reopen
qemu-io provides a 'reopen' command that allows switching from writable to read-only access. We need to make sure that we don't try to keep write permissions to a BlockBackend that becomes read-only, otherwise things are going to fail.
This requires a bdrv_drain() call because otherwise in-flight AIO write requests could issue new internal requests while the permission has already gone away, which would cause assertion failures. Draining the queue doesn't break AIO requests in any new way, bdrv_reopen() would drain it anyway only a few lines later.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com>
|